﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Temas/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="Asignar.aspx.cs" Inherits="Talento21.Pages.Evaluadores.Asignar" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


 <fieldset class="form-horizontal">
        <legend>Asignar Trabajadores a Evaluador</legend>
        <div class="well form-inline">
            <div class="control-group">
                <label>
                    Empresa:</label>
                <asp:DropDownList ID="ddlEmpresa" runat="server" AutoPostBack="true">
                </asp:DropDownList>
            </div>
            
        </div>

     <asp:Repeater ID="Repeater1" runat="server" DataSourceID="ObjectDataSource1">
        <HeaderTemplate>
        <table class="table table-striped">

        <tr>
                <th>
                    Rut
                </th>
                <th>
                    Nombre
                </th>
                <th>
                    Apellido Paterno
                </th>
                <th>
                    Apellido Materno
                </th>
                <th>
                    Cargo
                </th>
            </tr>

        </HeaderTemplate>

        <ItemTemplate>

            <tr>
                <td>
                    <%#  StringHelper.ToUpperCase(Eval("InfPersonas.Rut"))%>-<%#  StringHelper.ToUpperCase(Eval("InfPersonas.Dv"))%></td>
                <td>
                    <%#  StringHelper.ToUpperCase(Eval("InfPersonas.Nombre"))%>
                </td>
                <td>
                    <%#  StringHelper.ToUpperCase(Eval("InfPersonas.ApellidoPaterno"))%>
                </td>
                <td>
                    <%#  StringHelper.ToUpperCase(Eval("InfPersonas.ApellidoMaterno"))%>
                </td>
                <td>
                    <%#  StringHelper.ToUpperCase(Eval("InfPersonas.InfCargosEmp.Nombre"))%>
                </td>
                <td>
                    <asp:Button ID="Button1" runat="server" class="btn btn-primary"
                                Text="Asignar" 
                            CommandName='<%# Eval("Id_Evaluador")%>' oncommand="Button1_Command" />                  
                </td>
            </tr>
        
        </ItemTemplate>
        

        <FooterTemplate>
            </table>
        </FooterTemplate>
     </asp:Repeater>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="ObtenerEvaluadores" 
            TypeName="Talento21.Negocio.Servicio.SrvEvaluador">
            <SelectParameters>
                <asp:ControlParameter ControlID="ddlEmpresa" Name="rutEmpresa" 
                    PropertyName="SelectedValue" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
            
    </fieldset>
     
   
</asp:Content>
